Optimal. Leaf size=510 \[ \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {32 b \left (2 a^2-b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^5 (a-b) (a+b)^{3/2} \sqrt {d} f}-\frac {8 \left (5 a^2-3 a b-4 b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^4 (a-b) (a+b)^{3/2} \sqrt {d} f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.20, antiderivative size = 510, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2966, 2968,
3135, 3072, 3077, 2895, 3073} \begin {gather*} \frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}-\frac {32 b \left (2 a^2-b^2\right ) \tan (e+f x) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (\csc (e+f x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right )}{35 a^5 \sqrt {d} f (a-b) (a+b)^{3/2}}-\frac {8 \left (5 a^2-3 a b-4 b^2\right ) \tan (e+f x) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (\csc (e+f x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right )}{35 a^4 \sqrt {d} f (a-b) (a+b)^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 f \left (a^2-b^2\right )^2 \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 d f \left (a^2-b^2\right ) (a+b \sin (e+f x))^{3/2}}+\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2895
Rule 2966
Rule 2968
Rule 3072
Rule 3073
Rule 3077
Rule 3135
Rubi steps
\begin {align*} \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx &=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {6 \int \frac {\cos ^2(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{7/2}} \, dx}{7 a}\\ &=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {6 \int \frac {1-\sin ^2(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{7/2}} \, dx}{7 a}\\ &=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {12 \int \frac {2 \left (a^2-b^2\right ) d-\left (a^2-b^2\right ) d \sin ^2(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{5/2}} \, dx}{35 a^2 \left (a^2-b^2\right ) d}\\ &=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {8 \int \frac {\frac {1}{2} \left (5 a^4-9 a^2 b^2+4 b^4\right ) d^2-\frac {3}{2} a b \left (a^2-b^2\right ) d^2 \sin (e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{3/2}} \, dx}{35 a^3 \left (a^2-b^2\right )^2 d^2}\\ &=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+\frac {8 \int \frac {\frac {3}{2} a^2 b \left (a^2-b^2\right ) d^2+\frac {1}{2} b \left (5 a^4-9 a^2 b^2+4 b^4\right ) d^2+\left (\frac {3}{2} a b^2 \left (a^2-b^2\right ) d^2+\frac {1}{2} a \left (5 a^4-9 a^2 b^2+4 b^4\right ) d^2\right ) \sin (e+f x)}{(d \sin (e+f x))^{3/2} \sqrt {a+b \sin (e+f x)}} \, dx}{35 a^3 \left (a^2-b^2\right )^3 d}\\ &=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+\frac {\left (4 \left (5 a^2-3 a b-4 b^2\right )\right ) \int \frac {1}{\sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}} \, dx}{35 a^3 (a-b) (a+b)^2}+\frac {\left (16 b \left (2 a^2-b^2\right ) d\right ) \int \frac {1+\sin (e+f x)}{(d \sin (e+f x))^{3/2} \sqrt {a+b \sin (e+f x)}} \, dx}{35 a^3 \left (a^2-b^2\right )^2}\\ &=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {32 b \left (2 a^2-b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^5 (a-b) (a+b)^{3/2} \sqrt {d} f}-\frac {8 \left (5 a^2-3 a b-4 b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^4 (a-b) (a+b)^{3/2} \sqrt {d} f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 6.41, size = 1670, normalized size = 3.27 \begin {gather*} \frac {\sin (e+f x) \sqrt {a+b \sin (e+f x)} \left (-\frac {2 \left (a^2 \cos (e+f x)-b^2 \cos (e+f x)\right )}{7 a b^2 (a+b \sin (e+f x))^4}+\frac {4 \left (5 a^2 \cos (e+f x)+3 b^2 \cos (e+f x)\right )}{35 a^2 b^2 (a+b \sin (e+f x))^3}-\frac {2 \left (5 a^4 \cos (e+f x)-9 a^2 b^2 \cos (e+f x)+8 b^4 \cos (e+f x)\right )}{35 a^3 b^2 \left (a^2-b^2\right ) (a+b \sin (e+f x))^2}-\frac {32 \left (2 a^2 b^2 \cos (e+f x)-b^4 \cos (e+f x)\right )}{35 a^4 \left (a^2-b^2\right )^2 (a+b \sin (e+f x))}\right )}{f \sqrt {d \sin (e+f x)}}+\frac {4 \sqrt {\sin (e+f x)} \left (\frac {4 a \left (5 a^4-9 a^2 b^2+4 b^4\right ) \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{(a+b) \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+4 a \left (-8 a^3 b+4 a b^3\right ) \left (\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{(a+b) \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} \Pi \left (-\frac {a}{b};\sin ^{-1}\left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{b \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}\right )+2 \left (8 a^2 b^2-4 b^4\right ) \left (\frac {\cos (e+f x) \sqrt {a+b \sin (e+f x)}}{b \sqrt {\sin (e+f x)}}+\frac {i \cos \left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \csc (e+f x) E\left (i \sinh ^{-1}\left (\frac {\sin \left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{\sqrt {\sin (e+f x)}}\right )|-\frac {2 a}{-a-b}\right ) \sqrt {a+b \sin (e+f x)}}{b \sqrt {\cos ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \csc (e+f x)} \sqrt {\frac {\csc (e+f x) (a+b \sin (e+f x))}{a+b}}}+\frac {2 a \left (\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{(a+b) \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} \Pi \left (-\frac {a}{b};\sin ^{-1}\left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{b \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}\right )}{b}\right )\right )}{35 a^4 (a-b)^2 (a+b)^2 f \sqrt {d \sin (e+f x)}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(25052\) vs.
\(2(458)=916\).
time = 9.12, size = 25053, normalized size = 49.12
method | result | size |
default | \(\text {Expression too large to display}\) | \(25053\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\cos \left (e+f\,x\right )}^4}{\sqrt {d\,\sin \left (e+f\,x\right )}\,{\left (a+b\,\sin \left (e+f\,x\right )\right )}^{9/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________